import {defineConfig} from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
    title: "Java Desigin Patterns",
    description: "Java设计模式",
    themeConfig: {
        // https://vitepress.dev/reference/default-theme-config
        nav: [
            {text: '首页', link: '/'},
            {text: '概览', link: '/markdown-examples'}
        ],

        sidebar: {
            '/creation/': {
                text: '创建型模式',
                items:
                    [
                        {text: 'Markdown Examples', link: '/markdown-examples'},
                        {text: 'Runtime API Examples', link: '/api-examples'}
                    ]
            },
            '/structure/': {
                text: '结构型模式',
                items:
                    [
                        {text: 'Markdown Examples', link: '/markdown-examples'},
                        {text: 'Runtime API Examples', link: '/api-examples'}
                    ]
            },
            '/behavior/': {
                text: '行为型模式',
                items:
                    [
                        {text: 'Markdown Examples', link: '/markdown-examples'},
                        {text: 'Runtime API Examples', link: '/api-examples'}
                    ]
            },
        },

        socialLinks: [
            {icon: 'github', link: 'https://gitee.com/rwxy/design-patterns-study'}
        ]
    }
})
